import request from '@/utils/request'

// 查询CMC文献分类列表
export function listTdmCmcWenXian(query) {
  return request({
    url: '/admin/TdmCmcWenXian/list',
    method: 'get',
    params: query
  })
}

// 查询CMC文献分类详细
export function getTdmCmcWenXian(id) {
  return request({
    url: '/admin/TdmCmcWenXian/' + id,
    method: 'get'
  })
}

// 新增CMC文献分类
export function addTdmCmcWenXian(data) {
  return request({
    url: '/admin/TdmCmcWenXian',
    method: 'post',
    data: data
  })
}

// 修改CMC文献分类
export function updateTdmCmcWenXian(data) {
  return request({
    url: '/admin/TdmCmcWenXian',
    method: 'put',
    data: data
  })
}

// 删除CMC文献分类
export function delTdmCmcWenXian(id) {
  return request({
    url: '/admin/TdmCmcWenXian/' + id,
    method: 'delete'
  })
}
// 审核
export function to_examine(id,shenHe,pinZhong) {
  const data = {id, shenHe,pinZhong}
  return request({
    url: '/admin/examine',
    method: 'put',
    data:data
  })
}
